#@head() 
#@header()
<title>客户列表</title>
#@aside("client")
<div class="content-wrapper">
	<section class="content">
		<div class="row">
			<div class="col-xs-12">
				<div class="box">
					<div class="box-header">
						<h3 class="box-title" style="margin-left: 10px;">我的客户</h3>
						<!-- <button id="newclient"
							style="float: right; margin: 0 15px 5px 0; width: 80px;"
							type="button" onclick="location.href='#(path)/client/add'"
							class="btn btn-block btn-info">添加客户</button>-->
						<div class="box-body">
							<table id="example1" class="table table-striped">
								<thead>
									<tr> 
										<th>用户ID</th>
										<th>真实姓名</th>
										<th>手机号码</th>
										<th>注册时间</th>
										<!--<th>操作</th>-->
									</tr>
								</thead>
								<tbody>
									#for(item:list.list)
									<tr>
										<td>#(item.user_id)</td>
										<td>#(item.real_name)</td>
										<td>#(item.mobile)</td>
										<td>#(item.row_add_time)</td>
										<!--  <td>
										<a href="#(path)/client/add?id=#(item.user_id)" class="btn btn-success">编辑</a> 
										<a href="#(path)/client/view?clientid=#(item.user_id)" class="btn btn-info">查看</a> 
										</td>-->
									</tr>
									#end
								</tbody>
							</table>
						</div>
						#@paginate(list.pageNumber, list.totalPage, path+"/client/mylist?page=")
					</div>
				</div>
			</div>
		</div>
	</section>
</div>
#@footer()
<script>
	$(document).ready(function() {
		$(".btn-danger").click(function() {
			var id = $(this).data("id");
			layer.confirm('确认删除？', {
				btn : [ '删除', '取消' ]
			}, function() {
				layer.msg('已删除', {
					icon : 1
				});
				location.href = "#(path)/client/del?id="+id;
			}, function() {
				layer.msg('已取消', {
					icon : 1
				});
			});
		});
	});
</script>
</body>
</html>